package cn.itcast.wanxinp2p.account.service;

import cn.itcast.wanxinp2p.account.entity.Account;
import cn.itcast.wanxinp2p.api.account.model.AccountDTO;
import cn.itcast.wanxinp2p.api.account.model.AccountRegisterDTO;
import cn.itcast.wanxinp2p.common.domain.RestResponse;
import com.baomidou.mybatisplus.extension.service.IService;

/**
 * @author: Liu
 * @date: 2022/03/25
 * @time: 12:10
 */
public interface AccountService extends IService<Account> {
    RestResponse getSMSCode(String mobile);

    RestResponse<Integer> checkMobile( String mobile,  String key,  String code);

    /**
     * 账户注册
     * @param registerDTO 注册信息
     * @return
     */
    AccountDTO register(AccountRegisterDTO registerDTO);
}

